package com.example.plugin.config;


import java.util.Objects;

public class DefaultTemplate {

    private String name;

    private String text;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public DefaultTemplate(String name, String text) {
        this.name = name;
        this.text = text;
    }

    public DefaultTemplate() {
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DefaultTemplate that = (DefaultTemplate) o;
        return Objects.equals(name, that.name) &&
                Objects.equals(text, that.text);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, text);
    }
}
